/**
 * @Author:高志斐
 * @Date:2020/6/29
 * @Description:这是系统路由
 */
import React from 'react';
import { Route } from "react-router";
import Login from "./pages/Login/Login";
import MenuLayout from "./components/MenuLayout/MenuLayout";
import ServerErrorPage from "./components/ErroPage/ServerErrorPage";
import NotFound from "./components/ErroPage/NotFound";
import {Switch} from "react-router-dom";
export default (
    <Switch>
        <Route path='/' exact component={Login} />
        <Route path='/login' exact component={Login} />
        <Route path='/menuLayout' exact component={MenuLayout} />
        <Route path='/strategyList' exact component={MenuLayout} />
        <Route path='/portfolioList' exact component={MenuLayout} />
        <Route path='/fundPool' exact component={MenuLayout} />
        <Route path='/stockPool' exact component={MenuLayout} />
        <Route path='/portfolioDetail' exact component={MenuLayout} />
        <Route path='/creatPort' exact component={MenuLayout} />
        <Route path='/serverError' exact component={ServerErrorPage} />
        <Route path='*' exact component={NotFound} />
    </Switch>
)
